package com.afdor.rws.event.autoconfigure.annotation;

import com.afdor.rws.event.autoconfigure.EventDrivenConfigation;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启用事件总线，实现分布式事件协调处理
 *
 * @author 悭梵
 * @date Created in 2018-08-22 15:34
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Import({EventDrivenConfigation.class})
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
public @interface EnableEventBus {

}
